<% div_for project do %>
  <div class ="project_header">
    <span class="other_header">
      优先级: <%= project.priority %>&nbsp;&nbsp;&nbsp;&nbsp;状态: <%= trans_current_state_to_chs(project.state) %>&nbsp;
    </span>
    <h1><%= link_to project.name, project %></h1>
  </div>
  <div class ="project_details">
    <p>项目负责人: <%= project.user.name %>&nbsp;&nbsp;&nbsp;&nbsp;
       客户中文名: <%= project.chs_name %>
    </p>
  </div>
  <div class="project_foot">
    <span class="release_time">
    量产时间: <%= project.should_be_finish_time %>
    </span>
    S类 <%= link_to project.issues.count_open_issues("S"),
      :controller => :issues,
      :action => :index,
      :project_id => project,
      :issue_type => "S" %> /
    <%= link_to project.issues.count_issues("S"),
      :controller => :projects,
      :action => :show,
      :id => project,
      :issue_type => "S" %>&nbsp;

    &nbsp;&nbsp;&nbsp;&nbsp;A类 <%= link_to project.issues.count_open_issues("A"),
      :controller => :issues,
      :action => :index,
      :project_id => project,
      :issue_type => "A" %> /
    <%= link_to project.issues.count_issues("A"), 
      :controller => :projects,
      :action => :show,
      :id => project,
      :issue_type => "A" %>&nbsp;
    
    &nbsp;&nbsp;&nbsp;&nbsp;B类 <%= link_to project.issues.count_open_issues("B"),
      :controller => :issues,
      :action => :index,
      :project_id => project,
      :issue_type => "B" %> /
    <%= link_to project.issues.count_issues("B"), 
      :controller => :projects,
      :action => :show,
      :id => project,
      :issue_type => "B" %>&nbsp;

    &nbsp;&nbsp;&nbsp;&nbsp;未分配的问题 <%= link_to project.issues.count_unassign_issues,
      :controller => :issues,
      :action => :index,
      :project_id => project,
      :issue_type => "unassign" %>
  </div>
<% end %>